<div id="dialog">
<?php
if(isset($post['email'])) $email = $post['email'];
else $email = '';
if(isset($post['password'])) $password = $post['password'];
else $password = '';
?>
<div class="login-frame-top"></div>
<div class="login-frame-middle">
<div style="width:316px;border-bottom:1px solid;font-weight:bold;font-size:14px;">BanMar CMS</div>
<div id="flash-message">
	<?php if( $flash = Session::instance()->get('flash') ): ?>
	<?php echo $flash;Session::instance()->flash_del('flash'); ?>
	<?php endif; ?>
</div>
<div id="inner-form">
<?php echo form::open('/login')?>
<table>
<tr><td colspan="2" align="right"><a id="remind-open" href="<?php echo Url::base(false,true) ?>remind"><?php //echo i18n::get('remind_pass') ?></a></td></tr>
<tr><td><?php echo I18n::get('email') ?></td><td><?php echo form::input('email', $email) ?></td></tr>
<tr><td><?php echo I18n::get('password') ?></td><td><?php echo form::password('password', $password) ?></td></tr>
<tr style="height:50px;"><td></td><td align="right"><span style="float:left;padding-top:4px;"><?php echo form::checkbox('remember',TRUE) . I18n::get('remember') ?></span><span><input type="submit" value="zaloguj" /></span></td></tr>
</table>
<?php echo form::close()?>
</div>
</div>
<div style="margin-left:5px;margin-top:5px;">
<!--
<?php //echo html::anchor('/rejestracja', I18n::get('new_user')) ?><br />
-->
</div>
<div class="login-frame-bottom"></div>
</div>
<div id="footer">
<!--
<p> BanMar &copy; 2011 | <a href="http://banmar.pl">www.banmar.pl</a> | tel. 535-751-211</p>
-->
</div>